package com.example.recruitment_website.repository;

import com.example.recruitment_website.domain.Article;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface ArticleRepository extends JpaRepository<Article,Long> {
    @Query(value = "select * from article a where a.id = ?1",nativeQuery = true)
    Article findById(int i);

}
